home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / csr_001.arc / CSRDOS.H < prev    next >
Text File  |  1988-09-02  |  768b  |  40 lines

  1. /*
  2. **  C Spot Run DOS Functions Header File
  3. **
  4. **  NOTE:  The functions that use this file need at least DOS 2.0
  5. **         to properly function.
  6. **
  7. **  Alan Losoff's TREEDIR3.C contained the original DIRS structure.
  8. **
  9. **  Created: 04/04/86   Last Update: 04/15/86
  10. **
  11. */
  12.  
  13. struct DIRS
  14.  {
  15.   char dos[21];        /* DOS Internal Use */
  16.   char attribute;    /* File Attribute */
  17.   struct
  18.    {
  19.     unsigned hour:5;
  20.     unsigned minute:6;
  21.     unsigned second:5;
  22.    } time;
  23.   struct
  24.    {
  25.     unsigned year:7;
  26.     unsigned month:4;
  27.     unsigned day:5;
  28.    } date;
  29.   long size;
  30.   char name[13];
  31.   char filler[85];
  32.  };
  33.  
  34. #define READ_ONLY    0x01
  35. #define HIDDEN    0x02
  36. #define SYSTEM    0x04
  37. #define VOLUME    0x08
  38. #define SUB_DIR    0x10
  39. #define ARCHIVE    0x20
  40.